const express = require('express')
const router = express.Router()
const path = require('path')
const multer = require('multer')
const imformation = require('./imformation/imformation')
const video = require('./video/video')
// console.log(io);
router.get('/getinfo', imformation.getinfo)
router.get('/getProfile', imformation.getProfile)
// router.post('/upload_profile', imformation.upload_profile)
router.post('/upload', imformation.uploadFile)
router.post('/change', imformation.change)
router.post('/uploadvideo', imformation.uploadvideo)
router.post('/merge', imformation.merge)
router.post('/merge', imformation.merge)
router.post('/uploadhash', imformation.uploadhash)
router.post('/lunchvideo', imformation.lunchvideo)
router.post('/good', video.good)
router.post('/disgood', video.disgood)
router.post('/star', video.star)
router.post('/coin', video.coin)
router.get('/isLook', video.isLook)
router.post('/subscribe', video.subscribe)
router.get('/getfriends', video.getfriends)
router.post('/isFan', imformation.isFan)
router.post('/getfriendsWithToken', imformation.getfriendsWithToken)
router.get('/get_someone_videos', video.get_someone_videos)
router.get('/get_start', video.get_start)
router.get('/get_good_who', video.get_good_who)
router.get('/getIdolVideo', video.getIdolVideo)
router.post('/sendComment', video.sendComment)
router.get('/getComment', video.getComment)
router.get('/search', imformation.search)
router.get('/getChat',imformation.getChat)
router.get('/getChatUserInfo',imformation.getChatUserInfo)
router.get('/getChatList',imformation.getChatList)
router.get('/getChatNum',imformation.getChatNum)
router.get('/goodComment', video.goodComment)
router.get('/disgoodComment', video.disgoodComment)
router.get('/addhistory', video.addhistory)
router.get('/gethistory', video.gethistory)
module.exports = router
